home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000129_news@columbia.edu_Thu Apr 13 14:26:45 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA22065
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 13 Apr 1995 22:56:04 -0400
  3. Received: by apakabar.cc.columbia.edu id AA07388
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 13 Apr 1995 22:56:03 -0400
  5. Newsgroups: comp.protocols.kermit.misc
  6. Path: news.columbia.edu!panix!news.mathworks.com!uunet!in1.uu.net!news.nyc.pipeline.com!psinntp!maui!gcm.com!weiwen
  7. From: weiwen@gcm.com (Wei-Wen Lee)
  8. Subject: Kermit via filter
  9. Message-Id: <1995Apr13.142645.24475@gcm.com>
  10. Sender: usenet@gcm.com (Cnews Administrator)
  11. Organization: Greenwich Capital Markets, Inc.
  12. X-Newsreader: TIN [version 1.2 PL2]
  13. Date: Thu, 13 Apr 1995 14:26:45 GMT
  14. Lines: 44
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17.  
  18. Hi,
  19.     I am trying to run kermit from filter, using a this in 
  20. my .forward :
  21.     "|/vol/bin/filter -vo /tmp/filter.rr"
  22.  
  23. and my filter rule being :
  24.  
  25.     if <cond> then execute kermit.sh
  26.  
  27. where kermit.sh is a shell wrapper for an expect script that calls
  28. kermit.
  29.  
  30. I do a set host internet and then I try to connect.  But, I get this 
  31. error :
  32.  
  33.     Error opening /dev/tty
  34.     congm: No such device or address
  35.  
  36. If I run the script by hand, I have no problems, it is only when I try
  37. to run the script executed from filter that I get this error.
  38.  
  39. Any help would be appreciated. Thanks.
  40.  
  41. <------------------------- Expect Script ------------------------->
  42.  
  43. #!/vol/bin/expect -f
  44.  
  45. spawn kermit
  46.  
  47. expect {*C-Kermit>*}
  48. send "set host internet\r"
  49.  
  50. expect {*C-Kermit>*}
  51. send "set file type binary\r"
  52.  
  53. expect {*C-Kermit>*}
  54. send "set window-size 20\r"
  55.  
  56. expect {*C-Kermit>*}
  57. send "connect\r"
  58.  
  59.  
  60.